home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
qbprog.EXE
/
PAINTS.BAS
< prev
next >
Wrap
BASIC Source File
|
1998-04-02
|
1KB
|
26 lines
10 CLEAR:SCREEN 0,0,0:KEY OFF:COLOR 15,0,0:CLS:BEEP
20 C1$=CHR$(40):C2$=CHR$(99):C3$=CHR$(41):C4$=CHR$(32):C5$=CHR$(67)
30 C6$=CHR$(111):C7$=CHR$(112):C8$=CHR$(121):C9$=CHR$(114):C10$=CHR$(105)
40 C11$=CHR$(103):C12$=CHR$(104):C13$=CHR$(116):C15$=CHR$(49):C16$=CHR$(57)
50 C18$=CHR$(51):C20$=CHR$(69):C22$=CHR$(115):C24$=CHR$(110):C25$=CHR$(83)
60 C27$=CHR$(102):LOCATE 13,26:PRINT C1$;C2$;C3$;C4$;C5$;C6$;C7$;C8$;C9$;
70 PRINT C10$;C11$;C12$;C13$;C4$;C15$;C16$;C16$;C18$;C4$;C20$;C9$;C22$;C10$;
80 PRINT C24$;C25$;C6$;C27$;C13$:FOR P=0 TO 50000!:NEXT P:CLS:COLOR 7,0,0
90 CLEAR:KEY OFF:SCREEN 1,0:CLS:BEEP:X=160:Y=101:C=1
100 DEF SEG=0:KF=PEEK(1047):POKE 1047,&H0:DEF SEG:'Lights OFF
110 PSET(X,Y),C:'X=0-319 & Y=0-199 & C=0-3
120 D$=INKEY$:IF D$="" OR D$="P" OR D$="M" OR D$="H" OR D$="K" THEN 120
130 IF RIGHT$(D$,1)="P" THEN Y=Y+1:GOTO 110:'Aƒaºì
140 IF RIGHT$(D$,1)="H" THEN Y=Y-1:GOTO 110:'Yukarì
150 IF RIGHT$(D$,1)="M" THEN X=X+1:GOTO 110:'Saº
160 IF RIGHT$(D$,1)="K" THEN X=X-1:GOTO 110:'Sol
170 IF RIGHT$(D$,1)="I" THEN X=X+1:Y=Y-1:GOTO 110:'Saº-Üst
180 IF RIGHT$(D$,1)="Q" THEN X=X+1:Y=Y+1:GOTO 110:'Saº-Alt
190 IF RIGHT$(D$,1)="G" THEN X=X-1:Y=Y-1:GOTO 110:'Sol-Üst
200 IF RIGHT$(D$,1)="O" THEN X=X-1:Y=Y+1:GOTO 110:'Sol-Alt
210 IF D$=CHR$(32) THEN C=C+1:IF C=4 THEN C=1:GOTO 110
220 IF D$=CHR$(27) THEN 240
230 GOTO 120
240 DEF SEG=0:POKE 1047,KF:DEF SEG:'Lights ON
250 SCREEN 0,0,0:WIDTH 80:KEY ON:CLS:BEEP:END